<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <th:block th:include="include :: header('新增场景')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-scene-add">
        <input name="parentId" type="hidden"  th:value="${scene.sceneId}" />
        <div class="form-group">
            <label class="col-sm-3 control-label">场景名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="sceneName" placeholder="请输入您要新增的名称" maxlength="30"
                />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">所属场景名称（您将在此场景下新增场景）：</label>
            <div class="col-sm-8">
                <input class="form-control" readonly="true" type="text" name="parentName" id="parentName" value="" />
            </div>
        </div>
    </form>
</div>

<th:block th:include="include :: footer" />
<script type="text/javascript">
    $("#form-scene-add").validate({
        rules:{
            password:{
                required:true,
                minlength: 5,
                maxlength: 20
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(ctx + "system/user/resetPwd", $('#form-scene-add').serialize());
        }
    }
</script>
</body>
</html>